package diamond.day01;

import lombok.Data;

@Data
public class Person {
    private String name;
    public int age;

    private void show(){
        System.out.println("展示person类");
    }

    @Override
    public String toString() {
        return "Person{" +
                "name='" + name + '\'' +
                ", age=" + age +
                '}';
    }

    public void setAge(int age){
        this.age = age;
    }

    public Person(String name, int age){this.name = name;this.age=age;}
}
